package com.dog.dao.impl;

import com.dog.dao.RequisiteDAO;
import com.dog.model.Requisite;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;

/**
 * User: Kuttubek Aidaraliev
 * Date: 30.04.2010
 * Time: 13:08:38
 */
@Repository
public class RequisiteDAOImpl extends DAOImpl<Requisite> implements RequisiteDAO {

    @Autowired
    private SessionFactory sessionFactory;

    public RequisiteDAOImpl() {
        super(Requisite.class);
    }

    @PostConstruct
    public void initialize(){
        this.setSessionFactory(sessionFactory);
    }

}
